package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

/**
 * @description:
 * @author: panrongxiang
 * @date: 2021/7/1
 */
public class DefaultSqlFactoryBuilder implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlFactoryBuilder(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
